//
//  PushStrategyCell.m
//  HYHOME
//
//  Created by cjy on 16/3/3.
//  Copyright © 2016年 Mac. All rights reserved.
//

#import "PushStrategyCell.h"
#import "UIImageView+WebCache.h"
#import "ModelS.h"
#import "DKNightVersion.h"
@implementation PushStrategyCell



- (void)dealloc{

    [self.title release];
    [super dealloc];

}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{

    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.title = [[UILabel alloc]init];
        [self.contentView addSubview:self.title];
        
        self.cover_image.backgroundColor = [UIColor purpleColor];
        self.cover_image = [[ UIImageView alloc]init];
        [self.contentView addSubview:self.cover_image];
        
        
        [self.title release];
        [self.imageView release];
        
        
    }

    return self;


}



- (void)layoutSubviews{

    
    self.cover_image.frame =  CGRectMake(10, 10,self.frame.size.width - 20 ,200);

    self.title.frame = CGRectMake(10, 210, self.frame.size.width, 20);
    
    
    self.title.dk_textColorPicker = DKColorWithRGB(0x000000, 0xc6e2ef);
    


}

- (void)passModel:(ModelS *)model{

    [self.cover_image sd_setImageWithURL:[NSURL URLWithString:model.cover_image] placeholderImage:[UIImage imageNamed:@"jz"]];
    self.title.text = model.title;



}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
